package com.qh.org.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.qh.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
/**
 * 实体类：部门
 */
public class Department extends BaseDomain {


    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Long parent_id;

    private  Department department;
    private  Employee employee;

    //部门树
    //部门树最后一级没有数据就不显示
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();

}
